<%inherit file="main.html"/>
<%block name="Title">分类管理</%block>
<%block name="Main">

<div id="nav">
	<div class="buttons">
			<a href="/admin/category/new" class="button big">添加</a>
	</div>
</div>




<table id="table_list" summary="显示分类列表">
	<caption>分类列表</caption>
	<thead>
	<tr class="odd">
		<th scope="col" abbr="Category ID">分类ID</th>
		<th scope="col" abbr="Category Title">分类名</th>	
		<th scope="col" abbr="Category Action">操作</th>
	</tr>	
	</thead>
%for category in DATA.categoryList:
	<tr class="${loop.cycle('even', 'odd')}">
		<td>${category.key().id()}</td>
		<td><a href="/category/${category.name}">${category.name}</a>[${category.count()}]</td>
		<td>
			<a name="edit" href="/admin/category/edit/${category.key().id()}">[编辑]</a>
	<a name="delete" href="/admin/category/delete/${category.key().id()}">[删除]</a>		</td>
	</tr>
%endfor
</table>


</%block>
